<div class="header">
  <back-Btn></back-Btn>
  工程款
</div>
<div class="container finance task-review">
  <div class="p20 list f_sk">
    <div user-info no="TaskReview.result.no" depname="TaskReview.result.departmentName"
      date="TaskReview.result.applyDate" username="TaskReview.result.userName"></div>
    <div class="section">
      <div class="list-item flex">
        <div class="w40 c9">工程名称</div>
        <div class="w60" relative-module="contract_apply" module-no="{{TaskReview.result.contractNo}}">
          {{TaskReview.result.projectName}}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">收款(工程款)</div>
        <div class="w60" relative-module="other_money" module-no="{{TaskReview.result.receiveMoneyNo}}">
          {{TaskReview.result.receiveMoneyNo}}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">完税凭证</div>
        <div class="w60">
          {{TaskReview.result.taxRecordNo}}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">款项来源人</div>
        <div class="w60">
          {{TaskReview.result.moneyRes}}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">公司收款帐户</div>
        <div class="w60">
          {{TaskReview.result.receiptName}}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次来款金额</div>
        <div class="w60">
          {{TaskReview.result.comeIntoAmount|NBFmt }}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次收入金额</div>
        <div class="w60">
          {{TaskReview.result.income|NBFmt }}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">付款总金额</div>
        <div class="w60">
          {{TaskReview.result.totalAmount|NBFmt }}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">付款总金额(大写)</div>
        <div class="w60">
          {{TaskReview.result.amountInWorld }}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">营业税发票</div>
        <div class="w60">
          {{TaskReview.result.hasInvoice }}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">付款事由</div>
        <div class="w60">{{TaskReview.result.remark}}</div>
      </div>
      <div class="list-item flex" ng-if="TaskReview.result.taxReceiptNo">
        <div class="w40 c9">税票编号(1)</div>
        <div class="w60" relative-module="tax_receipt_register" module-no="{{TaskReview.result.taxReceiptNo}}">
          {{TaskReview.result.taxReceiptNo}}</div>
      </div>
      <div class="list-item flex" ng-if="TaskReview.result.taxReceiptNo2">
        <div class="w40 c9">税票编号(2)</div>
        <div class="w60" relative-module="tax_receipt_register" module-no="{{TaskReview.result.taxReceiptNo2}}">
          {{TaskReview.result.taxReceiptNo2}}</div>
      </div>
      <div class="list-item flex" ng-if="TaskReview.result.taxReceiptNo3">
        <div class="w40 c9">税票编号(3)</div>
        <div class="w60" relative-module="tax_receipt_register" module-no="{{TaskReview.result.taxReceiptNo3}}">
          {{TaskReview.result.taxReceiptNo3}}</div>
      </div>
      <div class="list table-list">
        <div class="info-title">付款明细</div>
        <div class="table-item">
          <div class="list-item flex">
            <div class="w40 c9">付款金额</div>
            <div class="w60"> {{TaskReview.result.amount}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">收款人</div>
            <div class="w60"> {{TaskReview.result.acceptCompany}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">收款人账号</div>
            <div class="w60"> {{TaskReview.result.acceptAccount}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">收款人开户行</div>
            <div class="w60"> {{TaskReview.result.acceptBank}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">工程款大类</div>
            <div class="w60">
              {{TaskReview.result.payType1}}
            </div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">工程款小类</div>
            <div class="w60">
              {{TaskReview.result.payType2}}
            </div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">通用合同</div>
            <div class="w60" relative-module="common_contract" module-no="{{TaskReview.result.commonContractNo}}">
              {{TaskReview.result.commonContractNo}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">成本发票</div>
            <div class="w60">
              <p ng-repeat="item in TaskReview.result.paymentInvoiceNo|arrfilter" relative-module="payment_invoice"
                module-no="{{ item }}">
                {{item}}
              </p>
            </div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">付款事由</div>
            <div class="w60">{{TaskReview.result.payRemark}}</div>
          </div>
        </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.paymentList">
          <div class="list-item flex">
            <div class="w40 c9">付款金额</div>
            <div class="w60"> {{item.paymentAmount}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">收款人</div>
            <div class="w60"> {{item.acceptCompany}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">收款人账号</div>
            <div class="w60"> {{item.acceptAccount}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">收款人开户行</div>
            <div class="w60"> {{item.acceptBank}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">工程款大类</div>
            <div class="w60">
              {{item.payType1}}
            </div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">工程款小类</div>
            <div class="w60">
              {{item.payType2}}
            </div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">通用合同</div>
            <div class="w60" relative-module="common_contract" module-no="{{item.commonContractNo}}">
              {{item.commonContractNo}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">成本发票</div>
            <div class="w60">
              <p ng-repeat="subitem in item.paymentInvoiceNo|arrfilter" relative-module="payment_invoice"
                module-no="{{ subitem }}">
                {{subitem}}
              </p>
            </div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">付款事由</div>
            <div class="w60">
              {{item.payRemark}}
            </div>
          </div>
        </div>
      </div>
      <div class="list table-list">
        <div class="info-title">扣款明细</div>
        <div class="table-item" ng-repeat="item in TaskReview.result.deductList">
          <div class="list-item flex">
            <div class="w40 c9">扣款项目</div>
            <div class="w60"> {{item.deductName}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">扣款类型</div>
            <div class="w60" ng-switch="item.deductType">
              <span ng-switch-when="0">
                收入
              </span>
              <span ng-switch-when="1">
                押金
              </span>
              <span ng-switch-when="2">
                缴纳
              </span>
              <span ng-switch-when="3">
                暂扣
              </span>
            </div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">扣款金额</div>
            <div class="w60"> {{item.deductAmount|NBFmt}}</div>
          </div>
          <div class="list-item flex">
            <div class="w40 c9">备注</div>
            <div class="w60">
              {{item.deductRemark}}
            </div>
          </div>
        </div>
        <div class="table-item" ng-repeat="item in deductList2">
          <div class="content" ng-class="{cur:$index==deductListIndex}" ng-click="resetdeduct()"
            ng-swipe-left="swipededuct($index)" ng-swipe-right="swipededuct(-1)">
            <div class="list-item">
              <div class="item-label">扣款项目</div>
              <div class="flow-content">{{item.deductName}}</div>
            </div>
            <div class="list-item">
              <div class="item-label">扣款类型</div>
              <div class="flow-content" ng-switch="item.deductType">
                <span ng-switch-when="0">
                  收入
                </span>
                <span ng-switch-when="1">
                  押金
                </span>
                <span ng-switch-when="2">
                  缴纳
                </span>
                <span ng-switch-when="3">
                  暂扣
                </span>
              </div>
            </div>
            <div class="list-item">
              <div class="item-label">扣款金额</div>
              <div class="flow-content">{{item.deductAmount}}</div>
            </div>
            <div class="list-item">
              <div class="item-label">备注</div>
              <div class="flow-content">{{item.deductRemark}}</div>
            </div>
          </div>
          <div class="delete_icon icon_del" ng-click="deletedDeduct($index)"></div>
        </div>
        <span class="c-blue list-item tc" ng-click="showDeducts()" ng-show="isShowDeducts">+添加</span>
      </div>
      <!-- 自定义字段 -->
      <div checkuser-define field-map="TaskReview.result.customFields"></div>
      <!-- 附件 -->
      <div class="file-upload" file-list checked="true" file-data="TaskReview.result.attachment">
      </div>
    </div>
    <div log-list status="processStatus" taskid="process_id"></div>
  </div>
</div>
<div class="list tablestyle pickceritem" ng-show="showCerPicker2">
  <div class="list-item">
    <div class="list-item list-content required">
      <div class="col-1-4">扣款项目</div>
      <div class="col-3-4">
        <input type="text" ng-model="picker.deductName" />
      </div>
    </div>
    <div class="list-item list-content required">
      <div class="col-1-4">扣款类型</div>
      <div class="col-3-4">
        <select ng-model="picker.deductType" ng-options="item.value as item.key for item in deductTypes">
          <option value="">请选择</option>
        </select>
      </div>
    </div>
    <div class="list-item list-content required">
      <div class="col-1-4">扣款金额</div>
      <div class="col-3-4">
        <input type="text" ng-model="picker.deductAmount" tel-directive />
      </div>
    </div>
    <div class="list-item list-content">
      <div class="col-1-4">备注</div>
      <div class="col-3-4">
        <input type="text" ng-model="picker.deductRemark" />
      </div>
    </div>
  </div>
  <div class="pickceritem-btn tc flex">
    <div class="cancel" ng-click="cacelDeducts()">取消</div>
    <div class="confirm" ng-click="addDeducts(picker)">确定</div>
  </div>
</div>